<include file="public@head_top"/>
<include file="public@member_top"/>
</head>
<body class="bgeee">
<include file="public@head"/>
<style>@media (max-width:991px){
	.wrap{ margin-top:0;}
	#top{ display:none;}
}
</style>
<if condition="!empty($_MGPC_GET['myinfo'])"> 
<style>
	#top{ display:block;}
	.tc-main{ margin-top:70px;}
	.userhome .leftnav{ display:none;}
	.topinfo{ display:none;}
	.st-x-showpc{ display:block;}
	.st-x-showmobile{ display:none;}
</style>
</if>

<div class="wrap clearfloat tc-main userhome">
  <div class="st-x-showpc">
    <div class="row">
            <div class="col-lg-3 leftnav">
                <include file="public@usernav" />
            </div>
            
            <div class="col-lg-9 rightmain">
                    <div class="topinfo">
                        <div class="infocon row st-listBlock">
                          <div class="col-9 leftinfo"><div class="info st-lin18">{$site_info.usernotice|default=''}</div></div>
                          <a href="{:cmf_url('portal/List/index',array('id'=>1))}?act=supplier&type=list" class="col-3 rightinfo st-flexBox st-fleboxtb st-fleboxlr">
                            <div class="st-block postBox">
                              <p><img src="__TMPL__/public/assets/images/post.png" width="35" /></p>
                              <h3 class="st-mt10 st-fon18 st-colf">发布</h3>
                            </div>
                          </a>
                        </div>
                        <div class="topbanner"><img src="https://demo.demohuo.top/modals/45/4517/demo/admin/images/ad/ad2.jpg" /></div>
                    </div>
                    <div class="card-header usertitle">
                        <ul class="nav nav-tabs card-header-tabs">
                          <li class="nav-item">
                            <a class="nav-link active" href="#one" data-toggle="tab"><i class="fa fa-home"></i> 个人中心</a>
                          </li>
                        </ul>
                      </div>
                      
                    <div class="tab-content usercontent userinfodetail listButBox">
                        <div class="tab-pane active" id="one">
                            <div class="form-group row">
                                <label class="col-3 col-form-label">账号</label>
                                <div class="col-9 form-control-plaintext">
                                    {$user_login|default='未填写'}
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">昵称</label>
                                <div class="col-9 form-control-plaintext">
                                    {$user_nickname|default='未填写'}
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">头像</label>
                                <div class="col-9 form-control-plaintext">
                                    <a href="{:url('profile/avatar')}">
                                    <if condition="empty($avatar)"> 
                                            <img src="__TMPL__/public/assets/images/headicon_128.png" class="headicon" width="128" />
                                        <else />
                                            <img src="__ROOT__/upload/{$avatar}" class="headicon" width="128"/>
                                        </if>
                                    </a>
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">余额</label>
                                <div class="col-9 form-control-plaintext">
                                    <a class="xm-status-text-red" href="#">￥{$balance}</a>
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">积分</label>
                                <div class="col-9 form-control-plaintext">
                                    <a class="xm-status-text-yellow" href="{:cmf_url('user/integral/index')}">{$score}</a>
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">性别</label>
                                <div class="col-9 form-control-plaintext">
                                    <php> $sexs=array("0"=>"保密","1"=>"男","2"=>"女");echo $sexs[$sex]; </php>
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">生日</label>
                                <div class="col-9 form-control-plaintext">
                                    {:date('Y-m-d',$birthday)}
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">个人网址</label>
                                <div class="col-9 form-control-plaintext">
                                    {$user_url|default='未填写'}
                                </div>
                              </div>
                            <div class="form-group row">
                                <label class="col-3 col-form-label">个性签名</label>
                                <div class="col-9 form-control-plaintext">
                                    {$signature|default='未填写'}
                                </div>
                              </div>
                            <div class="form-group row listButBox">
                                <label class="col-3 col-form-label"></label>
                                <div class="col-9 listbox">
                                    <a href="{:url('user/profile/edit')}" class="btn btn-success">编辑</a>
                                </div>
                              </div>
                        </div>
                    </div>
                    
            </div>
        </div>
    </div>

    <div class="st-x-showmobile">
        <div class="row">
        	<div class="headtop" style=" background:#fff;">
                    <div class="userInfo mobile_user_head st-mb15">
                        <a class="aui-member-setting" href="{:cmf_url('user/Profile/center')}?myinfo=1">
                              <img src="__TMPL__/public/assets/images/self-icon-setting.png">
                        </a> 
                        <div class="myInfo"> 
                          <div class="photo">
                            <php>$user=cmf_get_current_user();</php>
                                <if condition="empty($user['avatar'])">
                                    <img src="__TMPL__/public/assets/images/headicon.png" width="80" height="80" />
                                    <else/>
                                    <img src="{:cmf_get_user_avatar_url($user['avatar'])}" width="80" height="80" />
                                </if>
                          </div>
                          <div class="info-op">
                            <ul>
                                <li><i class="fa fa-edit fa-fw"></i> <a href="{:cmf_url('user/Profile/center')}?myinfo=1">我的信息</a></li>
                                <li><i class="fa fa-sign-out fa-fw"></i> <a href="{:cmf_url('user/Index/logout')}">安全退出</a></li>
                                <li><i class="fa fa-user fa-fw"></i> <a href="javascript:void(0);" title="会员等级">{$configmember['rankinfo']['name']}</a></li>
                            </ul>
                          </div>
                          <div style="clear:both"></div>
                        </div>
                        <p class="cost text-lg-center">您还差 575 积分达到 铜牌会员 </p>
                        
                        <!--Waves Container-->
                          <div style="position: absolute;width: 100%; bottom: 0;">
                            <svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 24 150 28" preserveAspectRatio="none" shape-rendering="auto">
                              <defs>
                                <path id="gentle-wave" d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z" />
                              </defs>
                              <g class="parallax">
                                <use xlink:href="#gentle-wave" x="48" y="0" fill="rgba(255,255,255,0.7" />
                                <use xlink:href="#gentle-wave" x="48" y="3" fill="rgba(255,255,255,0.5)" />
                                <use xlink:href="#gentle-wave" x="48" y="5" fill="rgba(255,255,255,0.3)" />
                                <use xlink:href="#gentle-wave" x="48" y="7" fill="#fff" />
                              </g>
                            </svg>
                          </div>
                          <!--Waves end--> 
                    </div>
                    <div class="topinfo">
                        <div class="infocon row st-listBlock">
                          <div class="col-9 leftinfo"><div class="info st-lin18">{$site_info.usernotice|default=''}</div></div>
                          <a href="{:cmf_url('portal/List/index',array('id'=>1))}?act=supplier&type=list" class="col-3 rightinfo st-flexBox st-fleboxtb st-fleboxlr">
                            <div class="st-block postBox">
                              <p><img src="__TMPL__/public/assets/images/post.png" width="35" /></p>
                              <h3 class="st-mt10 st-fon18 st-colf">发布</h3>
                            </div>
                          </a>
                        </div>
                        <div class="topbanner"><img src="https://demo.demohuo.top/modals/45/4517/demo/admin/images/ad/ad2.jpg" /></div>
                    </div>           
        	</div>
            <div class="col-lg-12 mainnav">
                <include file="public@usernav_mobile" />
            </div>
        </div>
    </div>
</div>
<!-- /container -->

<include file="public@footer"/>
<include file="public@member_scripts"/>
</body>    
</html>